#ifndef SOFTREGIST_H
#define SOFTREGIST_H

#include <QWidget>
#include "welcomepage.h"
namespace Ui {
class SoftRegist;
}

class SoftRegist : public QWidget
{
    Q_OBJECT

public:
    explicit SoftRegist(QWidget *parent = 0);
    ~SoftRegist();
    QPixmap createQRCode(const QString &text);
    void setBg();


private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pb_Enter_clicked();

private:
    Ui::SoftRegist *ui;
    void paintEvent(QPaintEvent*);
    bool flag;
    QString id;
    WelcomePage *welcomePage;
signals:
    void displayShowLogin();
};

#endif // SOFTREGIST_H
